package com.blog.service;
/** 
 * @author ant 
 * @date 创建时间：2017年8月17日 下午2:04:28  
 */

import java.util.List;

import org.springframework.web.multipart.MultipartFile;

import com.blog.model.Page;
import com.blog.model.ResultJSON;
import com.blog.model.TableJson;
import com.blog.pojo.Article;
import com.blog.pojo.Cate;
import com.blog.pojo.Comment;

public interface ArticleService {
	
	TableJson getCateList(Cate cate,Page page);
	
	Cate getCateByCateId(Integer cateId);
	
	ResultJSON editCate(Cate cate,String act);
	
	ResultJSON deleteCate(Integer cateId);
	
	List<Cate> listAllCate(Integer cateStatus);
	
	ResultJSON addArticle(Article article,List<String> pictureList,MultipartFile file);
	
	TableJson getArticleList(Article article,Page page);
	
	Article getArticleByArticleId(Integer articleId);
	
	ResultJSON deleteArticle(Integer articleId);
	
	ResultJSON editArticle(Article article,List<String> pictureList,MultipartFile file);
	
	Article getPreviousByPrimaryKey(Integer articleId);
	    
	Article getNextByPrimaryKey(Integer articleId);
	
	ResultJSON saveComment(Comment comment);
	
	List<Article> selectByViewCount(Integer end);
	

}
